package com.sxkf.template.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 杨玉龙
 * @since 2025-01-04 18:08:25
 */
@Getter
@Setter
@TableName("t_prize")
@ApiModel(value = "Prize对象", description = "")
public class Prize implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId("id")
    private String id;

    @ApiModelProperty("名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("")
    @TableField("image")
    private String image;

    @ApiModelProperty("数量")
    @TableField("count")
    private Integer count;

    @ApiModelProperty("概率（所有奖品的概率之和必须为1）")
    @TableField("probability")
    private Double probability;

      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;


}
